package ooday02;

/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/2/22 10:11
 */
public class Person {
    /** 定义变量*/
    String name;
    int age;
    String address;

    public Person(String name, int age, String address) {
        this.name = name;
        this.age = age;
        this.address = address;
    }

    /** 定义方法*/
    void eat(){
        System.out.println(name+"正在吃饭...");
    }
    void sleep(){
        System.out.println(name+"正在睡觉...");
    }
    void sayHi(){
        System.out.println("大家好，我叫"+name+"，今年"+age+"岁了，家住"+address);
    }

}
